package com.lanyam.travel.base.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 	旅游线路实体类
 * @author asus
 *
 */
public class Product extends Model<Product>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@JsonProperty(value="id")
	@TableId
	private String id;
	/**
	 * 	旅游线路名称/景点名称/酒店名称
	 */
	@JsonProperty(value="name")
	private String name;
	/**
	 * 	所在地区
	 */
	@JsonProperty(value="location")
	private String location;
	/**
	 * 	国内/国外，0为国内，1为国外
	 */
	@JsonProperty(value="region")
	private String region;
	/**
	 * 	价格
	 */
	@JsonProperty(value="price")
	private Double price;
	/**
	 * 	评论
	 */
	@JsonProperty(value="content")
	private String content;
	/**
	 *	 星级，1-5星
	 */
	@JsonProperty(value="star")
	private Integer star;
	/**
	 * 	评分
	 */
	@JsonProperty(value="commentScore")
	private Double commentScore;
	/**
	 * 	评论次数
	 */
	@JsonProperty(value="commentNum")
	private Integer commentNum;
	/**
	 * 	产品类型，用于区分景点/酒店 0：代表景点，1代表酒店
	 */
	@JsonProperty(value="productType")
	private Integer productType;
	/**
	 * 默认的每日总票数
	 */
	@JsonProperty(value="totalNum")
	private Integer totalNum;
	/**
	 * 	每月交易次数
	 */
	@JsonProperty(value="dealCount")
	private Integer dealCount;
	/**
	 * 景点/酒店供应商id
	 */
	@JsonProperty(value="supplyId")
	@TableField("supply_id")
	private String supplyId;
	/**
	 * 提成单价
	 */
	@JsonProperty(value="percentage")
	@TableField("percentage")
	private Double percentage;
	
	/**
	 * 创建时间
	 */
	@JsonProperty(value="createTime")
	@TableField("create_time")
	private Date createTime;
	
	/**
	 * 产品下维护的商品集合
	 */
	@JsonProperty(value="goodsInfoList")
	@TableField(exist = false)
	private List<GoodsInfo> goodsInfoList;
	
	
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public double getPercentage() {
		return percentage;
	}
	public void setPercentage(double percentage) {
		this.percentage = percentage;
	}
	public List<GoodsInfo> getGoodsInfoList() {
		return goodsInfoList;
	}
	public void setGoodsInfoList(List<GoodsInfo> goodsInfoList) {
		this.goodsInfoList = goodsInfoList;
	}
	public String getSupplyId() {
		return supplyId;
	}
	public void setSupplyId(String supplyId) {
		this.supplyId = supplyId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getRegion() {
		return region;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Integer getStar() {
		return star;
	}
	public void setStar(Integer star) {
		this.star = star;
	}
	public Double getCommentScore() {
		return commentScore;
	}
	public void setCommentScore(Double commentScore) {
		this.commentScore = commentScore;
	}
	public Integer getCommentNum() {
		return commentNum;
	}
	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}
	public Integer getProductType() {
		return productType;
	}
	public void setProductType(Integer productType) {
		this.productType = productType;
	}
	public Integer getTotalNum() {
		return totalNum;
	}
	public void setTotalNum(Integer totalNum) {
		this.totalNum = totalNum;
	}
	public Integer getDealCount() {
		return dealCount;
	}
	public void setDealCount(Integer dealCount) {
		this.dealCount = dealCount;
	}
	public void setPercentage(Double percentage) {
		this.percentage = percentage;
	}
	
}
